package com.zoo.wuhua.entity;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * <b>Book对象</b><br>
 *
 * @author zhangli7@yusys.com.cn
 * @since 2019年10月29日 下午6:27:17
 */
@Entity(name = "BOOK")
public class JpaBook {

    @Id
    private String id;
    private String name;
    private String author;
    private Double price;

    public JpaBook() {

    }

    public JpaBook(String name, String author, Double price) {
        this.name = name;
        this.author = author;
        this.price = price;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book [id=" + id + ", name=" + name + ", author=" + author + ", price=" + price + "]";
    }

}
